import request from '@/utils/request'

// 查询摄像头列表
export function listNetcamera(query) {
  return request({
    url: '/parking/netcamera/list',
    method: 'get',
    params: query
  })
}

// 查询摄像头详细
export function getNetcamera(netcameraId) {
  return request({
    url: '/parking/netcamera/' + netcameraId,
    method: 'get'
  })
}

// 新增摄像头
export function addNetcamera(data) {
  return request({
    url: '/parking/netcamera',
    method: 'post',
    data: data
  })
}

// 修改摄像头
export function updateNetcamera(data) {
  return request({
    url: '/parking/netcamera',
    method: 'put',
    data: data
  })
}

// 删除摄像头
export function delNetcamera(netcameraId) {
  return request({
    url: '/parking/netcamera/' + netcameraId,
    method: 'delete'
  })
}
